package com.demo2do.fms.admin.service.supplier.impl;

import org.springframework.stereotype.Service;

import com.demo2do.core.persistence.annotation.Dao;
import com.demo2do.fms.admin.dao.supplier.SupplierProfileDao;
import com.demo2do.fms.admin.service.DataServiceImpl;
import com.demo2do.fms.admin.service.supplier.TransSupplierService;
import com.demo2do.fms.entity.supplier.trans.TransSupplier;

/**
 * 
 * @author Wy
 *
 */
@Service("transSupplierService")
public class TransSupplierServiceImpl extends DataServiceImpl<TransSupplier> implements TransSupplierService{

    @Dao
    private SupplierProfileDao transportSupplierInfoDao;

    /*
     * (non-Javadoc)
     * @see com.demo2do.fms.admin.service.supplier.TransSupplierService#getTransSupplier(java.lang.Long)
     */
    public TransSupplier getTransSupplier(Long supplierId) {
        return transportSupplierInfoDao.getTransSupplier(supplierId);
    }

    /*
     * (non-Javadoc)
     * @see com.demo2do.fms.admin.service.supplier.TransSupplierService#edit(com.demo2do.fms.entity.supplier.trans.TransSupplier)
     */
    public void edit(TransSupplier transSupplier) {
        
        genericDaoSupport.update(transSupplier.edit());
    }
    
}
